﻿using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Practices.Composite.Modularity;
using Jbe.TestSuite.Infrastructure.Interface;
using Microsoft.Practices.Composite.Regions;
using Jbe.TestSuite.LogViewer.Demo.Properties;
using Microsoft.Practices.Composite.Presentation.Commands;
using Jbe.TestSuite.LogViewer.Demo.Presentation;
using Jbe.TestSuite.Help.Interface;
using System.Reflection;
using Jbe.Composite.Extensions;
using System.Collections.Specialized;
using Jbe.TestSuite.LogViewer.Demo.Applications;

namespace Jbe.TestSuite.LogViewer.Demo
{
    internal class Module : IModule
    {
        private readonly IApplicationContainer container;


        public Module(IApplicationContainer container, IRegionManager regionManager, IUIElementCreationService uiElementCreationService)
        {
            this.container = container;

            container.RegisterType<ILogDemoView, LogDemoView>(true);
        }


        public void Initialize()
        {
            container.Resolve<ModuleController>().Initialize();
        }
    }
}
